n,m=map(int,input().split())

print(n+m-16)
print(n+m-3)
print(n+m-1)
print(n+m)